<template>
  <div @dragstart="handleAsideDragstart($event, 'Text')" draggable="true">
    文本组件预览
  </div>
</template>

<script setup>
const emit = defineEmits(["addComponent"]);
const handleAsideDragstart = (e, component) => {
  emit("addComponent", component);
};
</script>

<style></style>
